package com.wk.service.implement;

import com.wk.dao.Examdao;
import com.wk.pojo.*;
import com.wk.pojo.Class;
import com.wk.service.Examservice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: thesis
 * @description: 考试信息操作类
 * @author: 王侃
 * @create: 2020-02-25 13:16
 **/
@Service
public class Examserviceimpl implements Examservice {
    @Autowired
    Examdao examdao;

    @Override
    public List<Class> selectbyallclass() {
        return examdao.selectbyallclass();
    }

    @Override
    public void insertintoFinal_exam(Final_examination examination) {
        examdao.insertintoFinal_exam(examination);
    }

    @Override
    public List<Final_examination> selectbymyfinalexam(Integer user_id) {
        return examdao.selectbymyfinalexam(user_id);
    }

    @Override
    public void updatebyexam_status(Integer id, Integer status) {
        examdao.updatebyexam_status(id,status);
    }

    @Override
    public Final_examination selectbytopicid(Integer id) {
        return examdao.selectbytopicid(id);
    }

    @Override
    public void updatebyallexamtopic(Final_examination examination) {
        examdao.updatebyallexamtopic(examination);
    }

    @Override
    public void deletebyexamtopic(Integer id) {
        examdao.deletebyexamtopic(id);
    }

    @Override
    public void deletebyallcontent(Integer exam_id) {
        examdao.deletebyallcontent(exam_id);
    }

    @Override
    public List<Final_content> selectbyallcontent(Integer user_id) {
        return examdao.selectbyallcontent(user_id);
    }

    @Override
    public void insertintofinal_content(Final_content content) {
        examdao.insertintofinal_content(content);
    }

    @Override
    public Final_content selectbyidcontent(Integer id) {
        return examdao.selectbyidcontent(id);
    }

    @Override
    public void updateintocontent(Final_content content) {
        examdao.updateintocontent(content);
    }

    @Override
    public void deletebycontent(Integer id) {
        examdao.deletebycontent(id);
    }

    @Override
    public List<Final_content> selectbyexam_content(Integer exam_id) {
        return examdao.selectbyexam_content(exam_id);
    }

    @Override
    public void updatebyid_stu_result_status(Integer id) {
        examdao.updatebyid_stu_result_status(id);
    }

    @Override
    public void insertintoacademic(Final_academic academic) {
        examdao.insertintoacademic(academic);
    }

    @Override
    public List<Final_academic> selectbytea_id_academic(Integer tea_id) {
        return examdao.selectbytea_id_academic(tea_id);
    }

    @Override
    public List<Final_examination> selectbyclass_id_exam(Integer class_id) {
        return examdao.selectbyclass_id_exam(class_id);
    }

    @Override
    public Integer selectbyid_deadline(Integer id) {
        return examdao.selectbyid_deadline(id);
    }

    @Override
    public Final_stu_results selectbystu_results(Integer stu_id, Integer exam_id) {
        return examdao.selectbystu_results(stu_id, exam_id);
    }

    @Override
    public void insertintostu_results(Final_stu_results results) {
        examdao.insertintostu_results(results);
    }

    @Override
    public Final_content selectbyidcontent_string(String id) {
        return examdao.selectbyidcontent_string(id);
    }

    @Override
    public void insertintostu_content(Final_stu_content content) {
        examdao.insertintostu_content(content);
    }

    @Override
    public List<Final_stu_results> selectbytea_id_results(Integer tea_id) {
        return examdao.selectbytea_id_results(tea_id);
    }

    @Override
    public List<Final_stu_content> selectbystu_content_exam_id(Integer result_id) {
        return examdao.selectbystu_content_exam_id(result_id);
    }

    @Override
    public Final_stu_results selectbyidstu_result(Integer id) {
        return examdao.selectbyidstu_result(id);
    }

    @Override
    public List<Final_academic> selectbystu_id_academic(Integer stu_id) {
        return examdao.selectbystu_id_academic(stu_id);
    }
}
